#!/usr/bin/env python
#-*- coding:utf-8 -*-

import urlparse

class OAuth2(object):
    def __init__(self, client_id=None, client_secret=None, auth_uri=None, scope=None, redirect_uri=None, response_type='code'):
        self.oauth2_uri = ''
        self.oauth2_uri.join(auth_uri+'?')
        self.oauth2_uri.join('scope=')
        self.oauth2_uri.join(scope+'&')
        self.oauth2_uri.join('redirect_uri')
        self.oauth2_uri.join(redirect_uri+'&')
        self.oauth2_uri.join()
